package com.zjitc.pigstudy.mapper;

import com.zjitc.pigstudy.domain.Time;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TimeMapper {

    @Select("select * from time where id=#{id}")
    Time getLoginTime(int id);

    @Update("update time set loginTime = #{loginTime} where id=#{id}")
    boolean setLoginTime(Time time);
}
